@if(session('error'))
    
    <script>
    $(document).ready(function () {
        toastr.warning('{{session('error')}}')
    })
    </script>
@endif

@if(session('success'))
    <script>
    $(document).ready(function () {
        toastr.success('{{session('success')}}')
    })
    </script>
@endif